package com.molyfun.parents.rest.bean;

import android.os.Parcel;
import android.os.Parcelable;

import com.molyfun.parents.activity.report.plan.IPlantDetailTabCell;
import com.molyfun.parents.rest.BaseResponse;

import java.util.List;

/**
 * Created by william(liuchao.hit@gmail.com).
 * Date:10/21/16.
 */
public class GetReportResultResponse extends BaseResponse{

    private List<ReportDetailTableCell> data;

    public List<ReportDetailTableCell> getData(){
        return data;
    }

    public static class ReportDetailTableCell implements Parcelable, IPlantDetailTabCell {


        /**
         * id : 8a2d92635a3517d3015a4484e04929fd
         * beginvalue : 0
         * endvalue : 0
         * evaluateid : null
         * category : 体能—大肌肉
         * abilitystatus : r\\'g't'r
         * adanalysis : 人通过人体
         */

        private String id;
        private int beginvalue;
        private int endvalue;
        private String evaluateid;
        private String category;
        private String abilitystatus;
        private String adanalysis;
        private List<EduSuggestionBean> edusuggestionlist;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public int getBeginvalue() {
            return beginvalue;
        }

        public void setBeginvalue(int beginvalue) {
            this.beginvalue = beginvalue;
        }

        public int getEndvalue() {
            return endvalue;
        }

        public void setEndvalue(int endvalue) {
            this.endvalue = endvalue;
        }

        public String getEvaluateid() {
            return evaluateid;
        }

        public void setEvaluateid(String evaluateid) {
            this.evaluateid = evaluateid;
        }

        public String getCategory() {
            return category;
        }

        public void setCategory(String category) {
            this.category = category;
        }

        public String getAbilitystatus() {
            return abilitystatus;
        }

        public void setAbilitystatus(String abilitystatus) {
            this.abilitystatus = abilitystatus;
        }

        public String getAdanalysis() {
            return adanalysis;
        }

        public void setAdanalysis(String adanalysis) {
            this.adanalysis = adanalysis;
        }

        public List<EduSuggestionBean> getEdusuggestionlist() {
            return edusuggestionlist;
        }

        public void setEdusuggestionlist(List<EduSuggestionBean> edusuggestionlist) {
            this.edusuggestionlist = edusuggestionlist;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(this.id);
            dest.writeInt(this.beginvalue);
            dest.writeInt(this.endvalue);
            dest.writeString(this.evaluateid);
            dest.writeString(this.category);
            dest.writeString(this.abilitystatus);
            dest.writeString(this.adanalysis);
            dest.writeTypedList(this.edusuggestionlist);
        }

        public ReportDetailTableCell() {
        }

        protected ReportDetailTableCell(Parcel in) {
            this.id = in.readString();
            this.beginvalue = in.readInt();
            this.endvalue = in.readInt();
            this.evaluateid = in.readString();
            this.category = in.readString();
            this.abilitystatus = in.readString();
            this.adanalysis = in.readString();
            this.edusuggestionlist = in.createTypedArrayList(EduSuggestionBean.CREATOR);
        }

        public static final Parcelable.Creator<ReportDetailTableCell> CREATOR = new Parcelable.Creator<ReportDetailTableCell>() {
            @Override
            public ReportDetailTableCell createFromParcel(Parcel source) {
                return new ReportDetailTableCell(source);
            }

            @Override
            public ReportDetailTableCell[] newArray(int size) {
                return new ReportDetailTableCell[size];
            }
        };

        @Override
        public String getFieldtempname() {
            return category;
        }
    }


    public static class EduSuggestionBean implements Parcelable {

        /**
         * ageRange : 60-72
         * content : 数据
         */

        private String agerange;
        private String content;

        public String getAgeRange() {
            return agerange;
        }

        public void setAgeRange(String ageRange) {
            this.agerange = ageRange;
        }

        public String getContent() {
            return content;
        }

        public void setContent(String content) {
            this.content = content;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(this.agerange);
            dest.writeString(this.content);
        }

        public EduSuggestionBean() {
        }

        protected EduSuggestionBean(Parcel in) {
            this.agerange = in.readString();
            this.content = in.readString();
        }

        public static final Parcelable.Creator<EduSuggestionBean> CREATOR = new Parcelable.Creator<EduSuggestionBean>() {
            @Override
            public EduSuggestionBean createFromParcel(Parcel source) {
                return new EduSuggestionBean(source);
            }

            @Override
            public EduSuggestionBean[] newArray(int size) {
                return new EduSuggestionBean[size];
            }
        };
    }

}